<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<h:head>
	<title><ui:insert name="title">Default title</ui:insert></title>
</h:head>

<h:body>
	<h:outputScript library="script" name="default.js" />
	<h:outputStylesheet library="style" name="default.css" />
	<h:outputStylesheet library="style" name="richfaces.css" />
	
	<script type="text/javascript">
	//<![CDATA[
		$(document).ready(function() {
			fixHeight();
			$(window).resize(function() {
				fixHeight();	
			});
		});
	//]]>
	</script>
	
	<h:panelGroup layout="block" styleClass="fullscreen">
		<h:panelGroup id="title" layout="block" styleClass="rf-p-hdr font-size16">
			Orcamento - V0.0.1
		</h:panelGroup>
		
		<h:form id="toolbar">
			<rich:toolbar height="26px">
				<rich:dropDownMenu mode="ajax">
					<f:facet name="label">
						<h:outputText value="File" />
					</f:facet>
					<rich:menuItem label="New" action="#{dropDownMenuBean.doNew}" />
					<rich:menuItem label="Open" action="#{dropDownMenuBean.doOpen}" />
					<rich:menuGroup label="Save As...">
						<rich:menuItem label="Save" action="#{dropDownMenuBean.doSave}" />
						<rich:menuItem label="Save All" action="#{dropDownMenuBean.doSaveAll}" />
					</rich:menuGroup>
					<rich:menuItem label="Close" action="#{dropDownMenuBean.doClose}" />
					<rich:menuSeparator id="menuSeparator11" />
					<rich:menuItem label="Exit" action="#{dropDownMenuBean.doExit}" />

				</rich:dropDownMenu>

				<rich:dropDownMenu mode="ajax">
					<f:facet name="label">
						<h:panelGrid cellpadding="0" cellspacing="0" columns="2"
							style="vertical-align:middle">
							<h:outputText value="Links" />
						</h:panelGrid>
					</f:facet>
					<rich:menuItem submitMode="client"
						onclick="document.location.href='http://labs.jboss.com/jbossrichfaces/'">
						<h:outputText value="RichFaces Home Page" />
					</rich:menuItem>
					<rich:menuItem submitMode="client"
						onclick="document.location.href='http://jboss.com/index.html?module=bb&amp;op=viewforum&amp;f=261'">
						<h:outputText value="RichFaces Forum" />
					</rich:menuItem>
				</rich:dropDownMenu>
			</rich:toolbar>
		</h:form>

		<h:panelGroup id="header" layout="block" styleClass="rf-p-hdr">
			<ui:insert name="header" />
		</h:panelGroup>
		
		<h:panelGroup id="content" layout="block" style="padding: 10px; overflow: auto;">
			<ui:insert name="content" />
		</h:panelGroup>
		
		<h:panelGroup id="footer" layout="block" styleClass="rf-p-hdr font-weight-normal">
			<ui:insert name="footer" />
		</h:panelGroup>

	</h:panelGroup>
</h:body>

</html>
